<#include "/layout/header.ftl" />
<#import "/include/ui.ftl" as blue />

<script>

function search_click()
{
	var obj = $.getObject("#div_search");	
	$("#div_grid").simpleLoad("/cms/adv_pos_list", obj, 0);
	
}

function web_change()
{
	var webId = $("#slt_web").val();
	window.location = "${path}/cms/adv_pos_list?webId=" + webId;
}


</script>

<div class="am-g am-cf am-margin-top am-margin-bottom">
	<div class="am-u-sm-3 am-padding-right-0">
		<div class="am-btn-group">
			<a href="${path}/cms/adv_pos_get?webId=${model.webId}" class="am-btn am-btn-primary am-radius">添加</a>
		</div>
	</div>
	<div class="am-u-sm-9 am-form-inline" id="div_search">
		<div class="am-form-group">
			<select id="slt_web" name="webId" data-am-selected="{'btnWidth': '120px'}" onchange="web_change()">
				<@blue.select list=webList value=model.webId />
			</select>
		</div>

		<div class="am-form-group">
			<select  name="state" data-am-selected="{'btnWidth': '120px'}">
				<@blue.select list=map.state search=1 placeholder="选择状态" />
			</select>
		</div>

		<a href="javascript:void(0)" onclick="search_click()" class="am-btn am-btn-primary am-radius">搜索</a>
	</div>
</div>

<div class="am-g" id="div_grid">
	<#include "/cms/adv_pos_list_grid.ftl" />
</div>

<#include "/layout/footer.ftl" />